package model;

public class ParkingSpace {
    private int id;
    private String type; // "sold" or "rented"
    private Integer ownerId; // 售出停车位所有人
    private Integer renterId; // 租用停车位租用人
    private double fee; // 管理费或租用费

    public ParkingSpace(int id, String type, Integer ownerId, Integer renterId, double fee) {
        this.id = id;
        this.type = type;
        this.ownerId = ownerId;
        this.renterId = renterId;
        this.fee = fee;
    }

    // getter/setter
    public int getId() { return id; }
    public String getType() { return type; }
    public Integer getOwnerId() { return ownerId; }
    public Integer getRenterId() { return renterId; }
    public double getFee() { return fee; }
    public void setId(int id) { this.id = id; }
    public void setType(String type) { this.type = type; }
    public void setOwnerId(Integer ownerId) { this.ownerId = ownerId; }
    public void setRenterId(Integer renterId) { this.renterId = renterId; }
    public void setFee(double fee) { this.fee = fee; }
}